import random
f=open('new1.txt',mode='r')


def f1(p,r):
    return (2*p*r)/(p+r)

data=[]
for line in f:
    d=line.split()
    dd=[]
    for item in d:
        dd.append(float(item))
    data.append(dd)

print(data)
print(data[0][0])

for i in range(0,2):
    p=random.uniform(data[i][0],data[i+1][0])
    r=random.uniform(data[i][1],data[i+1][1])
    print(str(p)+'\t'+str(r)+'\t'+str(f1(p,r)))

for i in range(0,3):
    print(data[i][2]-f1(data[i][0],data[i][1]))